package models

import "time"

type Chats struct {
	Id            int64
	MemberA       int64     `json:"member_a"`
	MemberB       int64     `json:"member_b"`
	MemberADelete int64     `json:"member_a_delete"`
	MemberBDelete int64     `json:"member_b_delete"`
	CreatedAt     time.Time `orm:"auto_now_add;type(datetime)"`
	UpdatedAt     time.Time `orm:"auto_now;type(datetime)"`
}

func (u *Chats) TableName() string {
	return "kppw_chat" // 这里返回的是自定义的表明
}
